<template>
  <view class="classifyBody">
    <view class="back">
      <uni-icons type="arrow-left" size="28" @tap="back" />
      <text class="text">{{ title }}</text>
    </view>
    <myShowImg :id="id" :bottom="false"></myShowImg>
  </view>
</template>

<script lang="ts" setup>
import avatar from "@/static/images/avatar.jpg"
import { onLoad } from '@dcloudio/uni-app'
import { onMounted, onBeforeUnmount, ref } from 'vue'
const id = ref("")
const title = ref("")
onLoad((e: any) => {
  id.value = e.id
  title.value = e.title
})
const back = () => {
  uni.navigateBack()
}
onMounted(() => {

})
onBeforeUnmount(() => {

})
</script>

<style scoped lang="scss">
.classifyBody {
  width: 100%;
  padding-top: var(--status-bar-height);
  height: calc(100vh - var(--window-top) - var(--window-bottom));
  display: flex;
  flex-direction: column;
  overflow: hidden;

  .back {
    padding: 10rpx;
    display: flex;
    align-items: center;
    gap: 10px;

    .text {
      font-size: 17px;
    }
  }
}
</style>